﻿@model List<DotNet.JCore.Entity.SyncCarExitStation>
@{
    Layout = null;
    int total = Model.Count;
}
<div class="djcCenNum">共搜索到 @total 条符合条件的信息</div>
@if (total > 0)
{
    foreach (var item in Model)
    {
        <table class="djcCTDri" style="margin-top:20px;">
            <tr>
                <td>车牌号</td>
                <td>@item.BusCode</td>
                <td>客运站</td>
                <td>@item.OwnerStationName</td>
            </tr>
            <tr>
                @if (item.OutTime == null)
                    {
                    <td>出站时间</td>
                    <td style="font-weight:800;">未登记</td>
                        <td>运行时间</td>
                        <td></td>
                }
                else
                {
                    <td>出站时间</td>
                    <td style="font-weight:800;">@item.OutTime</td>
                        <td>运行时间</td>
                        <td style="font-weight:800;">
                            @if (item.RunSecond > 120)
                            {<text>大于2小时</text>}
                            else
                            {<text>@item.RunSecond 分钟</text>}
                        </td>
                }
            </tr>
            <tr>
                <td>出站乘客</td>
                <td>@item.OutNum 人</td>
                @*<td>核载人数</td>
                        <td>@item.SeatCount 人</td>
                    </tr>
                    <tr>
                        <td>售票数</td>
                        <td>@item.SaleCount 张</td>*@
                <td>线路</td>
                <td>@item.LineName</td>
            </tr>
            <tr>
                <td>司机姓名</td>
                <td>@item.Driver1Name</td>
                <td>司机电话</td>
                <td>@item.Driver1Tel</td>
            </tr>
            <tr>
                <td>运输企业</td>
                <td>@item.OwnerCompName</td>
                <td>稽查点</td>
                <td>@item.PointName</td>
            </tr>
            <tr>
                <td>运行状态</td>
                <td>
                    @if (!item.RunStatus)
                    { <span style="color:red; font-weight:800;">异常</span> }
                    else
                    {
                        <span style="color:lightgreen; font-weight:800;">正常</span>
                    }</td>
                <td>备注</td>
                <td>@item.Note</td>
            </tr>
        </table>
    }
}